#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<string>

using namespace std;
int lengthSore(string& input)
{
	int length = input.size();
	if (length < 8)
	{
		if (length <= 4)
			return 5;
		return 10;
	}
	return 25;
}
int diagitSore(string& input,int& diagitNum)
{
	for (int i = 0; i < input.size(); ++i)
	{
		char tmp = input[i];
		if (isdigit(tmp))
		{
			++diagitNum;
		}
	}
	if (diagitNum == 1)
		return 10;
	else if (diagitNum > 1)
		return 20;

	return 0;
}
int alphaSore(string& input,int& alphaNum, int& lowerNum, int& upperNum)
{
	for (int i = 0; i < input.size(); ++i)
	{
		char tmp = input[i];
		if (isupper(tmp))
		{
			++alphaNum;
			++upperNum;
		}
		if (islower(tmp))
		{
			++alphaNum;
			++lowerNum;
		}
	}
	if (upperNum + lowerNum != 0)
	{
		if (upperNum == alphaNum || lowerNum == alphaNum)
			return 10;
		return 20;
	}
	return 0;
}
int symbolSore(string& input,int& symbolNum)
{
	for (int i = 0; i < input.size(); ++i)
	{
		char tmp = input[i];
		if (!isdigit(tmp) && !isalpha(tmp))
		{
			++symbolNum;
		}
	}
	if (symbolNum == 1)
		return 10;
	else if (symbolNum > 1)
		return 25;

	return 0;
}
int moreSore(int& diagitNum, int& alphaNum, int& lowerNum, int& upperNum, int& symbolNum)
{
	if (diagitNum != 0 && alphaNum != 0)
	{
		if (symbolNum != 0)
		{
			if (lowerNum != diagitNum && upperNum != diagitNum)
				return 3;
		}

		return 2;
	}
	return 0;
}
int main()
{
	string input;
	int sore = 0, diagitNum = 0, alphaNum = 0, lowerNum = 0, upperNum = 0, symbolNum = 0;
	getline(cin, input);
	sore += lengthSore(input);
	sore += alphaSore(input, alphaNum, lowerNum, upperNum);
	sore += diagitSore(input, diagitNum);
	sore += symbolSore(input, symbolNum);//10
	sore += moreSore(diagitNum, alphaNum, lowerNum, upperNum, symbolNum);//
	if (sore < 90)
	{
		if (sore >= 80)
			cout << "SURCURE";
		if(sore >= 70 && sore < 80)
			cout << "VERY_STRONG";
		if (sore >= 60 && sore < 70)
			cout << "STRONG";
		if (sore >= 50 && sore < 60)
			cout << "AVERAGE";
		if (sore >= 25 && sore < 50)
			cout << "WEAK";

		cout << "VERY_WERK";
	}
	cout << "VERY_SECURE";

	return 0;
}